#include<iostream>
#include<string>
using namespace std;

/*多继承
【注】当有多个基类时，构造函数调用顺序与派生类定义时写的顺序有关
	  即与class KeHuo:public Keche, public Huoche中Keche和Huoche的顺序有关
*/

/*class Keche{
	int zaike;
	double gongli;
public:
	Keche(int zk, double g){
		zaike = zk;
		gongli = g;
		cout << "构造keche" << endl;
	}
	void Kshow(){
		cout << "载客量" << zaike << "  " << "公里数" << gongli << "  ";
	}
};

class Huoche{
protected:
	double zaizhong;
public:
	Huoche(double zz){
		zaizhong = zz;
		cout << "构造huoche" << endl;
	}
};

class KeHuo:public Keche, public Huoche{ //构造函数调用顺序与此处有关
	string chepai;
public:
	KeHuo(int zk, double g, double zz, string c):Keche(zk, g), Huoche(zz)
	{
		chepai = c;
	}
	void KHshow(){
		Kshow();
		cout << "载重量：" << zaizhong << "  ";
		cout << "车牌号：" << chepai << endl;
	}
};

int main()
{
	KeHuo kh(20, 425.8, 334, "晋F66688");
	kh.KHshow();
	return 0;
}*/
